<!DOCTYPE html>
<html lang="en" class="no-js" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout" layout:decorator="layout">
<head>
    <title>搭配套餐管理</title>

</head>
<body>
<div layout:fragment="content">

    <div class="row">
        <div class="col-md-12">
            <div class="btn-group pull-right">
                <a href="index.html" th:href="@{'/promotion/combo/index?page='+${page}+'&amp;viewState='+${viewState}}" id="link_cancel" class="btn green">返回<i class="fa fa-arrow-circle-o-left"></i></a>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <div class="form">
                <form role="form" id="form_combo_edit" th:object="${combo}" class="form-horizontal form-bordered">
                    <h4 class="form-section">搭配套餐信息</h4>
                    <div class="form-body">
                        <div class="form-group">
                            <label class="control-label col-md-3">套餐名称</label>
                            <div class="col-md-4">
                                <p th:text="*{name}" class="form-control-static">
                                    Bob
                                </p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-md-3">开始时间</label>
                            <div class="col-md-4">
                                <p th:text="*{#calendars.format(startDate,'yyyy-MM-dd HH:mm:ss')}" class="form-control-static">
                                    Bob
                                </p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-md-3">结束时间</label>
                            <div class="col-md-4">
                                <p th:text="*{#calendars.format(endDate,'yyyy-MM-dd HH:mm:ss')}" class="form-control-static">
                                    Bob
                                </p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-md-3">套餐价格</label>
                            <div class="col-md-4">
                                <p th:text="*{price}" class="form-control-static">
                                    Bob
                                </p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-md-3">排序</label>
                            <div class="col-md-7">
                                <p th:text="*{displayOrder}" class="form-control-static">
                                    Bob
                                </p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-md-3">描述</label>
                            <div class="col-md-7">
                                <p th:utext="*{description}" class="form-control-static">
                                    Bob
                                </p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-md-3">该套餐内的商品</label>
                            <div class="col-md-4">
                                <select  class="form-control" size="10">
                                    <option th:each="eachValue : ${combo.comboGoods}" th:value="${eachValue.id}" th:text="${eachValue.name}"></option>
                                </select>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
</html>